<?php
    $pull = '"C:\Program Files\Git\cmd\git.exe" pull 2>&1';
    exec($pull,$out);
    foreach($out as $v)
    {    
        echo iconv( 'GB2312','UTF-8', $v)."<br>";
    }